<!-- setup写法 -->
<template>
	<div><h1>这是Mixin_B组件</h1></div>
	{{ num }}
	<button @click="favBtn(1)">{{ fav ? '收藏中...' : '收藏' }}</button>
</template>

<script setup>
import mixin from '@/mixins/mixin_setup.js';
let { num, fav, favBtn } = mixin();
</script>

<!-- 选项式API写法 -->
<!-- <template>
	<div><h1>这是Mixin_B组件</h1></div>
	{{ num }} -->
<!-- <button @click="favBtn(10)">按钮</button> -->
<!-- 	<button @click="favBtn(10)">{{ fav ? '收藏中...' : '收藏' }}</button>
</template>

<script type="text/javascript">
import { fav } from '@/mixins/mixin_option.js';
export default {
	mixins: [fav]
};
</script> -->

<style></style>
